package context.support;

import context.ApplicationContext;
import beans.factorys.support.DefaultBeanFactory;
import beans.factorys.xml.XmlBeanDefinitionReader;
import core.io.ClassPathResource;
import core.io.Resource;

/**
 * Created by ZhaiGuaili on 2018/7/5.
 */
public class ClassPathXmlApplicationContext extends AbstractApplicationContext {

    public ClassPathXmlApplicationContext(String configFileName){
      super(configFileName);

    }

    @Override
    protected Resource getResourceByPath(String configFile) {
        return new ClassPathResource(configFile,this.getBeanClassLoader());
    }

}
